import { RouteRecordRaw } from 'vue-router'

const routes:RouteRecordRaw[] = [
    {
        path : '/system',
        component : () => import('../layout/index.vue'),
        meta : {title : 'SYS_MANAGE'},
        name : 'SYS_MANAGE',
        children : [
            {
                path : 'menu',
                meta : {title : 'MENU_MANAGE'},
                name : 'MENU_MANAGE',
                component : () => import('@/pages/system/menu/index.vue')
            },

            {
                path : 'dictionary',
                meta : {title : 'DICT_MANAGE'},
                name : 'DICT_MANAGE',
                component : () => import('@/pages/system/dictionary/index.vue')
            },

            {
                path : 'language',
                meta : {title : 'LANG_MANAGE'},
                name : 'LANG_MANAGE',
                component : () => import('@/pages/system/language/index.vue'),
                children : [
                    {
                        path : 'locale',
                        meta : {title : 'LANG_LOCALE'},
                        name : 'LANG_LOCALE',
                        component : () => import('@/pages/system/language/locale.vue')
                    },

                    {
                        path : 'lang',
                        meta : {title : 'LANG'},
                        name : 'LANG',
                        component : () => import('@/pages/system/language/lang.vue')
                    }
                ]
            }
        ]
    }
]

export default routes